<%-- 
    Document   : login
    Created on : 07.04.2014, 19:46:13
    Author     : dima
--%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Login form</title>
        <link rel="stylesheet" type="text/css" href="stylesheet.css">
                        
<script type="text/javascript">
<!--

function f_click() {

    document.location.href = "registration.jsp";

   }//-->
</script>
                        
    </head>
    <body>
        <h1>Login form</h1>
        <html:form action="/login">
            <table border="0">
                <tbody>
                    <tr>
                        <td colspan="2">
                            <bean:write name="LoginForm" property="error" filter="false"/>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>Enter your name:</td>
                        <td><html:text property="name" /> </td>
                    </tr>
                    <tr>
                        <td>Enter your email</td>
                        <td><html:text property="email"/> </td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><html:submit value="Login" /></td>
                        <td><html:button value="Registration" onclick="f_click();" property="register"></html:button></td>
                        <%
                           // response.sendRedirect("WEB-INF/registration.jsp");
                            %>
                    </tr>
                   
                </tbody>
            </table>

        </html:form>
    </body>
</html>
